#include "Boss.h"
#include <iostream>
//acces
int Boss::getHealth(){

	return health;
}

int Boss::getHealthMax()
{
	return health;
}
int Boss::getPosX()
{
	return x;
}
int Boss::getPosY()
{
	return y;
}
int Boss::getWidth()
{
	return width;
}
int Boss::getHeight()
{
	return height;
}
bool Boss::getChangeAnim(){

	return changeAnim;
}
//modif


void Boss::healthUp(int x){
	health = health + x;

}
void Boss::healthDown(int x){
	health = health - x;
}


//action

void Boss::powningNoobs(){


	changeAnim = false;

	if (it < 160){

		
		x=x+2;
		y=y-1.6;
	}

	if (it > 160 &&it < 500){
		x=x-2;
		
	}

	if (it > 500 && it < 750){
		y=y+2;
		x = x + 1;

	}

	if (it > 750 && it < 1000){
		y=y-2;
		

	}

	if (it > 1000 && it < 1250){
		y=y+2;
		x=x+1.6;


	}

	if (it > 1250 && it <1395){
		x=x-2;
		y = y - 1*(1.675);
		


	}



	it++;
	anim++;
	if (it>1395){		
		it = 0;
		x = 375;
		y = 275;

	}
	if (anim == 80){
		
		changeAnim = true;
		anim = 0;

	}


	
}